<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>新闻添加页</title>
    <link rel="stylesheet" th:href="@{/statics/css/common.css}" type="text/css">
</head>
<body>
    <form th:action="@{/addNews}" method="post">
        <table>
            <tr>
                <td>标题</td>
                <td><input type="text" name="title" placeholder="请输入标题"></td>
            </tr>
            <tr>
                <td>作者</td>
                <td><input type="text" name="author" placeholder="请输入作者名"></td>
            </tr>
            <tr>
                <td>内容</td>
                <td><textarea name="content" placeholder="请输入新闻内容"></textarea></td>
            </tr>
            <tr>
                <td>分类:</td>
                <td><select name="tid">
                    <option value="0">请选择</option>
                    <option th:each="newsType : ${newsTypeList}" th:value="${newsType.id}" th:text="${newsType.typeName}">测试</option>
                </select> </td>
            </tr>
            <tr>
                <td><input type="submit" value="提交"></td>
                <td><input type="reset" value="重置"></td>
            </tr>
        </table>
    </form>
</body>
</html>